package Demo09;

public class Demo09 {
    public static void main(String[] args) {
        String a = "hello java";
        String b = "hello java";

        System.out.println(a);
        if (a.equals(b)){
            String res01 = a.replace(" ", "");

            System.out.println(res01);
            String res0102 = a.replace("java","word");
            System.out.println(res0102);
        }
    }
}
